<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorate="~{/layout/layout}"
>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>成功12312</h1>
    <h1 th:utext="${hi}">这里显示欢迎</h1>
    <hr/>
    <h1 th:text="${hi}"></h1>
    <h1 th:utext="${hi}"></h1>
    <!-- 等价于  使用内联语法需要激活内联属性，比较麻烦 -->
    <h1 th:inline="text">[[${hi}]]</h1>
    <h1 th:inline="text">[(${hi})]</h1>
    <hr/>
    <!-- each所在的标签，每次遍历都会生成一个该标签，包括子标签 -->
    <div th:each="user : ${users}">
        <div th:text="${user}"></div>
    </div>
    <hr/>
    <div th:each="user:${users}" th:text="${user}"></div>
    <hr/>
    <div>
        <span  th:each="user:${users}">[[${user}]]</span>
    </div>
    <hr/>
    <div th:text="${#dates.format(date,'yyyy-MM-dd HH:mm:ss')}"></div>
</body>
</html>